const TOKEN_KEY = "Auth_token"

/***
 * 设置token
 * @param {*} token
 */
export const setToken = (token) => {
    localStorage.setItem(TOKEN_KEY, token);
}

/***
 * 获取token
 * @param {*} token
 */
export const getToken = () => {
    return localStorage.getItem(TOKEN_KEY);
}


/***
 * 销毁token
 * @param {*} token
 */
export const removeToken = () => {
    localStorage.removeItem(TOKEN_KEY);
}